﻿using UnityEngine;

namespace Assets.Scripts.Interface
{
    class ScreenHolderInterface : InterfaceBase
    {
        private bool ExibeCreditos;
        private GameObject MainMenu;
        private int Timer = 90;

        void Awake()
        {
            MainMenu = this.gameObject.transform.parent.FindChild("MainMenu").gameObject;
        }

        void Update()
        {
            base.Update();

            if (Input.anyKeyDown)
                base.Finishing = true;
        }

        protected override void Execute()
        {
            MainMenu.SetActive(true);
            this.gameObject.SetActive(false);
        }
    }
}
